package acwing.搜索;/**
 * @author： li
 * @date： 2022-03-23 18:53
 * @version 1.0
 */
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.StringStack;

import java.util.*;
public class 栈 {
    public static void main(String[] args) {
        Stack stack = new StringStack();

        stack.push("yin yin");
        stack.push("luo");
        while(!stack.empty()){
            System.out.print(stack.peek()+" ");
            stack.pop();
        }
        stack.clear();
    }
}
